\hypertarget{classc_terrain_v1}{\section{c\-Terrain\-V1类 参考}
\label{classc_terrain_v1}\index{c\-Terrain\-V1@{c\-Terrain\-V1}}
}


创建地形，与c\-Terrain加载和结构相同，区别是需要c\-Ground\-V1。  




{\ttfamily \#include $<$c\-Terrain\-V1.\-h$>$}

\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classc_terrain_v1_a504520448c316ed2a7ba72e8681ff946}{void {\bfseries init} (\hyperlink{classc_render}{c\-Render} $\ast$p\-Render, \hyperlink{struct_terrain}{Terrain} terrain, string Height\-Map, string Stone\-Tex, string Grass\-Tex, string Dirt\-Tex, string Blend\-Map, float Height\-Scal, float Height\-Offset)}\label{classc_terrain_v1_a504520448c316ed2a7ba72e8681ff946}

\item 
\hypertarget{classc_terrain_v1_af7717bd0b249503618ecbb66afeeb6bb}{void {\bfseries draw} (D3\-D\-X\-M\-A\-T\-R\-I\-X \&world, D3\-D\-X\-M\-A\-T\-R\-I\-X \&view, D3\-D\-X\-M\-A\-T\-R\-I\-X \&proj, D3\-D\-X\-V\-E\-C\-T\-O\-R3 Light\-Dir=D3\-D\-X\-V\-E\-C\-T\-O\-R3(0, 1, 0), float Ambient\-Essentially=1.\-0f, D3\-D\-X\-V\-E\-C\-T\-O\-R3 Fog\-Color=\-D3\-D\-X\-V\-E\-C\-T\-O\-R3(0.\-5f, 0.\-5f, 0.\-5f))}\label{classc_terrain_v1_af7717bd0b249503618ecbb66afeeb6bb}

\item 
\hypertarget{classc_terrain_v1_a1e4942b14d8771bd8c6e340a86e71a0a}{float {\bfseries get\-Y} (float x, float z)}\label{classc_terrain_v1_a1e4942b14d8771bd8c6e340a86e71a0a}

\item 
\hypertarget{classc_terrain_v1_ab34ddf3ad61617844e3544c4375ee2da}{\hyperlink{classc_ground_v1}{c\-Ground\-V1} $\ast$ {\bfseries get\-Ground} ()}\label{classc_terrain_v1_ab34ddf3ad61617844e3544c4375ee2da}

\end{DoxyCompactItemize}
\subsection*{Public 属性}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classc_terrain_v1_a72cdae73c6706c0e29e3b194e7c5dbf4}{\hyperlink{struct_terrain}{Terrain} {\bfseries m\-\_\-\-Terrain}}\label{classc_terrain_v1_a72cdae73c6706c0e29e3b194e7c5dbf4}

\end{DoxyCompactItemize}
\subsection*{Protected 成员函数}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classc_terrain_v1_a1f804f3eef090b95a2e7e04f354ff9d4}{void {\bfseries shader\-\_\-draw} ()}\label{classc_terrain_v1_a1f804f3eef090b95a2e7e04f354ff9d4}

\end{DoxyCompactItemize}
\subsection*{Protected 属性}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classc_terrain_v1_ac7050317d2c8290b2f855dd82798b6b0}{\hyperlink{classc_height_map}{c\-Height\-Map} {\bfseries m\-\_\-\-Height\-Map\-Object}}\label{classc_terrain_v1_ac7050317d2c8290b2f855dd82798b6b0}

\item 
\hypertarget{classc_terrain_v1_a85bcb917d5cc58729f1606d117948f93}{\hyperlink{classc_vertex_decl}{c\-Vertex\-Decl} $\ast$ {\bfseries m\-\_\-p\-Vertex\-Decl}}\label{classc_terrain_v1_a85bcb917d5cc58729f1606d117948f93}

\item 
\hypertarget{classc_terrain_v1_ab605070ad548ebb4377bfc99e63db8dc}{\hyperlink{classc_fx}{c\-Fx} $\ast$ {\bfseries m\-\_\-p\-Fx}}\label{classc_terrain_v1_ab605070ad548ebb4377bfc99e63db8dc}

\item 
\hypertarget{classc_terrain_v1_acc03f4817fa5d98bfe54f4ff297d46e5}{\hyperlink{classc_ground_v1}{c\-Ground\-V1} $\ast$ {\bfseries m\-\_\-p\-Ground}}\label{classc_terrain_v1_acc03f4817fa5d98bfe54f4ff297d46e5}

\end{DoxyCompactItemize}


\subsection{详细描述}
创建地形，与c\-Terrain加载和结构相同，区别是需要c\-Ground\-V1。 

该类的文档由以下文件生成\-:\begin{DoxyCompactItemize}
\item 
E\-:/!代码工厂/3\-D引擎/c\-Terrain\-V1.\-h\item 
E\-:/!代码工厂/3\-D引擎/c\-Terrain\-V1.\-cpp\end{DoxyCompactItemize}
